
<form id="form_add">
<table>
	<tr>
		<td width="20%" align="right">员工：</td>
		<td width="30%"><input type="text" name="emp" id="emp" value="{[$result.emp]}:{[$result.emp_t]}" size="16" title="{[$t.emp_|emp:'员工']}"> <a
			href="javascript:void(0)" id="emp_x" onclick="Pay.collapse(this)" class="ui-icon ui-icon-circle-triangle-s"
			style="display: inline-table"></a></td>
		<td width="20%" align="right"></td>
		<td width="30%"></td>
	</tr>
	<tr id="label_zh">
		<td align="right">私人：</td>
		<td colspan="3">{[include file="finance/salary/_bank_zh.tpl"]}</td>
	</tr>
	<tr id="label_gh">
		<td align="right">公司：</td>
		<td colspan="3">{[include file="finance/salary/_bank_gh.tpl"]}</td>
	</tr>
	<tr>
		<td align="right">名称：</td>
		<td colspan="3"><input type="text" name="name" id="name" value="{[$result.name]}" size="16"> <select name='name_t'
			id='name_t'>
			{[html_options options=$tt_option selected=-]}
		</select></td>
	</tr>
	<tr>
		<td align="right">支付方式：</td>
		<td><select name='payment' id='payment'>
			{[html_options options=$payment_option selected=$result.payment]}
		</select></td>
		<td align="right">类型：</td>
		<td><select name='type' id='type'>
			{[html_options options=$type_option selected=$result.type]}
		</select></td>
	</tr>
	<tr>
		<td align="right"></td>
		<td colspan="3">考勤情况（单位：天）</td>
	</tr>
	<tr>
		<td align="right">应出勤：</td>
		<td><input type="text" name="d1" value="{[$result.d1]}" size="12"></td>
		<td align="right">迟到/未打卡：</td>
		<td><input type="text" name="d3" value="{[$result.d3]}" size="12"></td>
	</tr>
	<tr>
		<td width="20%" align="right">实际出勤：</td>
		<td width="30%"><input type="text" name="d2" value="{[$result.d2]}" size="12"></td>
		<td width="20%" align="right">事假：</td>
		<td width="30%"><input type="text" name="d4" value="{[$result.d4]}" size="12"></td>
	</tr>
	<tr>
		<td align="right"></td>
		<td></td>
		<td align="right">病假：</td>
		<td><input type="text" name="d5" value="{[$result.d5]}" size="12"></td>
	</tr>
	<tr>
		<td align="right"></td>
		<td colspan="3">工资明细（单位：人民币）</td>
	</tr>
	<tr>
		<td align="right">基本工资：</td>
		<td><input type="text" name="s1" value="{[$result.s1]}" size="12"></td>
		<td align="right">奖金：</td>
		<td><input type="text" name="s3" value="{[$result.s3]}" size="12"></td>
	</tr>
	<tr>
		<td align="right">加班费：</td>
		<td><input type="text" name="s2" value="{[$result.s2]}" size="12"></td>
		<td align="right">提成：</td>
		<td><input type="text" name="s4" value="{[$result.s4]}" size="12"></td>
	</tr>
	<tr>
		<td align="right"></td>
		<td></td>
		<td align="right">小计：</td>
		{[assign var="t1" value="`$result.s1+$result.s2+$result.s3+$result.s4`"]}
		<td>{[$t1]}</td>
	</tr>
	<tr>
		<td align="right"></td>
		<td colspan="3">扣除明细（单位：人民币）</td>
	</tr>
	<tr>
		<td align="right">社保：</td>
		<td><input type="text" name="k1" value="{[$result.k1]}" size="12"></td>
		<td align="right">事病/迟到：</td>
		<td><input type="text" name="k2" value="{[$result.k2]}" size="12"></td>
	</tr>
	<tr>
		<td align="right">其它：</td>
		<td><input type="text" name="k9" value="{[$result.k9]}" size="12"></td>
		<td align="right">小计：</td>
		{[assign var="t2" value="`$result.k1+$result.k2+$result.k9`"]}
		<td>{[$t2]}</td>
	</tr>
	<tr>
		<td align="right"></td>
		<td colspan="3">发放情况</td>
	</tr>
	<tr>
		<td align="right">代扣个税：</td>
		<td><input type="text" name="kd" value="{[$result.kd]}" size="12"></td>
		<td align="right">应发工资：</td>
		<td><input type="text" name="t1" value="{[$result.t1]}" size="12"></td>
	</tr>
	<tr>
		<td align="right"></td>
		<td></td>
		<td align="right">实发工资：</td>
		<td><input type="text" name="t2" id="t2" value="{[$result.t2]}" size="12"></td>
	</tr>
	<tr>
		<td align="right">对私：</td>
		<td><input type="text" name="ns" id="ns" value="{[$result.ns]}" size="12"></td>
		<td align="right">对公：</td>
		<td><input type="text" name="sj" id="sj" value="{[$result.sj]}" size="12"></td>
	</tr>
	<tr>
		<td align="right">备注：</td>
		<td colspan="3"><textarea rows="2" name="content" cols="55">{[$result.content]}</textarea></td>
	</tr>
</table>
</form>

<script type="text/javascript" src="js/finance/salary/pay.js?r={[$smarty.now]}"></script>
<script type="text/javascript" src="js/finance/salary/add.js?r={[$smarty.now]}"></script>
